package com.itcast.spring6.aop.api;

import lombok.extern.slf4j.Slf4j;
import org.springframework.aop.ThrowsAdvice;
import org.springframework.stereotype.Component;

/**
 * 异常通知
 * @author zhangtian105
 * @date 2023/5/11
 * @apiNote
 */
@Slf4j
@Component(value = "myThrowsAdvice")
public class MyThrowsAdvice implements ThrowsAdvice {
    public void afterThrowing(RuntimeException ex) {
        log.info("【After-Throwing】spring6.MyThrowsAdvice.afterThrowing ......");
    }
}
